﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XGE;
using Microsoft.Xna.Framework;

namespace Engine_Project_1
{
    public class Game : IDisposable
    {
        Core EngineGame = new Core();
        public Game()
        {
            LoadObjects();
        }
        public void Run()
        {
            EngineGame.Run();
        }
        public void LoadObjects()
        {
            Random RanVal = new Random();
            List<Object> Components = new List<object>();
            for (int i = 0; i < 50; i++)
            {
                Components.Add(new GameObjects.Ball(new Vector2((float)RanVal.NextDouble()*800,(float)RanVal.NextDouble()*40)));
            }

            EngineGame.LoadComponents(Components);
        }


        #region IDisposable Members

        public void Dispose()
        {
            EngineGame.Dispose();
        }

        #endregion
    }
}
